home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 June / EnigmA AMIGA RUN 08 (1996)(G.R. Edizioni)(IT)[!][issue 1996-06][EARSAN CD VII].iso / earcd / texts / autoindx.lha / AutoIndex / AutoIndex.def next >
Text File  |  1996-05-15  |  2KB  |  67 lines

  1. STACK 8000
  2.  
  3.  
  4. ;  SCRIPT FILENAME: AutoIndex.def            
  5. ;  DATE           : 15 May 1996 
  6. ;  AUTHOR         : Colin F. Thompson
  7. ;  DESCRIPTION    : Generates a HTML file(s) that lists all the brushes
  8. ;                   in the selected directories.
  9. ;                   The HTML filename will be DIRNAME.html    
  10. ;  REQUIREMENTS   : MUI, MUInt, Arexx, AutoIndex.rexx, WB2.x+
  11. ;  INSTALLATION   : Place MUINT in the path. 
  12. ;  USAGE          : Copy this file to the directory that contains 
  13. ;                 : the directories you want to make a HTML listing for. 
  14. ;                 : Copy AutoIndex.rexx to SYS:Rexx.
  15. ;
  16. ;                 : From the shell, execute AutoIndex.def. 
  17. ;                 : Select the directories from the listview and press 
  18. ;                 : MAKE HTML. When you are done, aim your browser at
  19. ;                 : any of these HTML files to see the brushes in the
  20. ;                 : directory.
  21. ;
  22. ;  DISTRIBUTION   : Freely distributable.
  23. ;                 : MUInt and AutoIndex.rexx are © 1994, 1995, 1996 by 
  24. ;                 : Both Software. All rights reserved.
  25. ;                 : The full MUInt archive may be found in Aminet as:
  26. ;                 : dev/gui/MUInt_dev_v1.lha. Download it and enjoy!
  27.  
  28.  
  29.  
  30. ; This is a MUInt definition script:
  31.  
  32. ;================ LOAD THE LISTVIEW FROM THIS DIRECTORY   ============
  33. ;================ `CD` IS THE DIR THIS .DEF FILE LIVES IN ============
  34. ;================     %F IS PATH, %N IS FILE(dir)NAME     ============
  35.  
  36.  
  37. SET LOCATION `CD`
  38. list >ram:BRU.LVdir $LOCATION PAT ~(#?.info|#?.html|#?.def|#?.rexx|) lformat  "%N" 
  39.  
  40.  
  41. ;================   WRITE THE BUTTON FILE TO RAM: ====================
  42. ;========== FORMAT: <FILENAME> "<BUTTONTEXT>;<DOS_COMMAND>" ==========
  43.  
  44. echo  >ram:BRU.buttons "Make HTML;rx AutoIndex.rexx []"
  45. echo >>ram:BRU.buttons "QUIT"
  46.  
  47.  
  48. ;================   WRITE THE DEFINITION FILE TO RAM: ================
  49.  
  50. echo   >ram:BRU.cl "BEGIN"
  51. echo  >>ram:BRU.cl "TITLE *"HTML File Writer*"" 
  52. echo  >>ram:BRU.cl "LV RAM:BRU.LVDIR MULTI SORT"
  53. echo  >>ram:BRU.cl "BUTTONS  ram:BRU.buttons"
  54. echo  >>ram:BRU.cl "WIDTH 66"
  55. ;echo  >>ram:BRU.cl "DEBUG"
  56. echo  >>ram:BRU.cl "END"
  57.  
  58.  
  59. MUInt ram:BRU.cl 
  60.  
  61. DELETE ram:BRU.#? quiet
  62.  
  63. QUIT
  64.  
  65. ; NOTE: You can uncomment the "DEBUG" line to see what is happening
  66. ;       as the script executes.
  67.